<?php

namespace App\Listeners;

use App\Events\RegSuccess;
use App\Templates\SimpleRule;

/**
 * 奖金结算监听器
 */
class BonusListener implements BonusInterface
{
    use SimpleRule;

    public function __construct()
    {

    }

    /**
     * 事件逻辑处理
     * @param $event
     */
    public function handle($event)
    {
        if ($event instanceof RegSuccess) {
            $this->userRegSuccess($event);
        }
    }

}